Fix bug in tagging sentences.