fixed another error in search template