Fixed indexing error

fixed invalid tuple - int operation error. tuple needed to be indexed
Merge remote-tracking branch 'upstream/master'
Fixed invalid get_pos
Merge pull request #15 from dschreij/master

Fixed indexing error causing crash