Security fix for non-logged-in users.