removed undefined var from tpl