fix bugs with start sum