fix template extension