Fixed a bug in mesh.