sum bug fix