Fix indexOf bug
Merge pull request #1 from jimmed/fix-indexof-bug

Fix indexOf bug