fix bug in getSection