fixes bugs in user search