Fix section hierarchy.