fix missing username bug