Fixed layout issues with page breaks.