Fix index function
Merge pull request #5 from niclashoyer/patch-1

Fix index function