fixed wrong parameters for stopping in objective