fix crash from searching for empty