bug in template