correct template not found error handling