scheduler: fix on sum_stopped calculation
scheduler: last phases force to finish when overtimed