fixing a bug that occurs when sub-sections are added prior to parent section being added to DOM, preventing the section from being displayed