fixed dumb bug in mesh generation