Preview state incorrectly enabled when template is customized

Preview state incorrectly enabled when template is customized