Template.php to be fixed