small bug fix in template