make n_slack switch also when the objective converged