Fixed the routing for search