bug fixes for search pages