Fixed bug of the mesh conversion.