Fixed parentheses out of range when adding the section query method