Fix crash with NEI