fix nonzero offset bug in mesh.rectilinear