Fixed bug where the wrong section was being collapsed