bug fixed in template