fix bug that cause the last word is missing