fixed problems with search engine

author: nhhughes