Fix templates not found problem