fix section handling by page format