some errors in the templates