fixed tiny bug in template