Corrected errors into JDOM class