minor bug fix
Sentence indexing refactored