bug fixes in search