fix bug in template