fix tmpl display issue