also fix empty sets when serializing