Fixed some typos in logic bugs in page layout, especially giving up after one text split of a passage