fixed getSumState in hormSumTable