Recover from XML error on importing