fix template minor bug