fix error on truncated sentences