Properly restore margin box after bounding box spans multiple pages