Fix bug in retrieving search/user from params