bugs in template naming