fix page section handling