Fix minor bug in searchWhere