Bugfix: sentenceIndex is an int.