fix username parsing bug