Fixed a small bug in the username lookup