Fixed a serious problem when learning structure on lines with certain types of variable suffix lengths