Fix crash on large sentences