bug fix in demo.tpl