Fixed error when retrieving user's username