Fix bug of XYZ import/export