fixed a bug in one of the templates