fixed a problem with breaking_thr and boundaries for the solution