fixing residual cuts