fixed set operations bug