Fix search results wrapping issue