fix pagebreaks