fixed nullpointer, since some files from prior xEssentials are outdated