Fixed prediction when no matching words found