Fix NEI compatiblity code.