fix small format bug in template