fixed search bug (empty list)