fixed problem in the template