Fix value_idx missing in getStackSums
Merge pull request #10 from kindy/fix-value_idx-error

Fix value_idx missing in getStackSums