fix db searching error