fixed a bug where words longer than 22 words cause the script to fail permanently
fixed a bug where words longer than 22 words cause the script to fail permanently