Fixed template.php