Fixed the wrong array offsets.
Merge pull request #70 from LBliss/issue/65

Fixed the wrong array offsets.