Fix #86

Correct the array offsets of the decoding methods.
Merge pull request #87 from LBliss/issue/86

Fix #86