Fix NullPointerException on XYE Tools.