IMAP: small bugfix in sequence-set scanner