fixed issue with template