fix user search function