fix incorrect fillingSum calculation