Check to make sure the currentSection isn't undefined.