Fixed bug in conditional display - [code tpl]