Fixed an issue with the template