fixed small bug in the search template