fixed bug where usernames with spaces couldn't be found