Fixed some bugs with the sectionlist