fix removal of duplicate keys from seq tree