bugfix for cut