Fixed bug caused by a typo in the template