Fixed template.php & pjax_template.php