fixed issue with empty sets (in combination with sorted sets)