fixes to mesh.each