fix template filename extension