Fix bug when a sentence-ending word is picked