Fix collapsed subsections expanding when creating or deleting subsections