fixed handling of deep sections