Fixed an issue with section names coming out in the wrong order