fixed bugs in vertexdata.copy