corrected minor search bug