recalculation of sums didn't work properly when dragging items