fix bug in inverted section