fixing wrong sums converting