minor template bug fix