small fix for cut_optim