fix assertion in set()