fixes an error where the user is not present, causing server error