fixed(?) bug in the mesh cutting