diff --git a/layouts/shortcodes/tabpane.html b/layouts/shortcodes/tabpane.html
index ad58f413c7..7359da5b11 100644
--- a/layouts/shortcodes/tabpane.html
+++ b/layouts/shortcodes/tabpane.html
@@ -82,7 +82,7 @@
{{/* Check for duplicate tab-persistence keys */ -}}
{{ if and $persistTab $persistKey -}}
- {{ if in $persistKey $persistKeyList -}}
+ {{ if in $persistKeyList $persistKey -}}
{{ $duplicate = true -}}
{{ $duplicateKey = $persistKey -}}
{{ $persistTab = false -}}