Fix template not found error