Fixed index_of bug
Merge pull request #16 from Sachaniman/master

Fixed index_of bug