[Bug 734339] The writer table sum function adds up wrong