fix small bug in template