fixed problem with template names