small sum stat bug fix