fix minor template bug