fix bug in getPageHeading