Fixing variables name in tpl.php