fix for CopyMesh()