fix bug in a template