fix template title bug