sum fix bug