fixed bug where internal non-word nodes appeared to be included as words