Fix some bugs in peopleSearch.