Fix bug that updated mesh.x0 when it wrote out the mesh to UBC format.