Fix index

fixes #8
Merge pull request #1 from opal/master

Fix index