fix numbering in template