fixed the problem when words are missing