Fix incorrect setState

When other lists are present in current section, it incorrectly determines the state.