fixed a duplicate opening of custom xml causing ioerror with missing file