fix a bug in a template