Fix error in template.php