Fixed comparison of sets when fields are ignored