Fixes getUsername errors.