bug fixes in partial searching