Fix overwriting of title on inserting page breaks