Fix crash with all items disabled