Add support for inverted sections
Fix support for inverted sections