fixes in Mesh to easy modify buffers