fix the bug of choose the route from the search result