fix bad page breaks