fixing errors when user not present