bug fix: log sum was broken...