fixing a search change bug