fixed username undefined