fix page sections handling