fix username unset bug