Preview state incorrectly enabled when template is customized