fix bug rowSum