fix index flags
Merge pull request #472 from deeky666/fix-index-flags

Fix index flags