bug fixes for esearch