fix check for uniqueness, has_key check is broken for IIBtree