Fixed getSections method