fixed the bug that a sentence of only one word cannot be removed from the output