Fix that does not check the user id when no user is logged in