Fixed a severe and stupid bug in Mesh module