Fix negative indexing issue.
Merge pull request #125 from jvkersch/fix-tuple-indexing

Fix negative indexing issue.