fix when user is not defined