Screwed up some relations - how to fix?

In http://www.openstreetmap.org/browse/changeset/3487159 I used JOSM to add some ways to relations. I thought it would keep the ways outside the area in the relations, but apparently not; it also killed all the tags. How do I revert this, and how would I add ways to relations properly?

You could first check the history of the relation:

http://www.openstreetmap.org/browse/relation/371726/history

and then repair manually in JOSM.

Chris

So, for http://www.openstreetmap.org/browse/relation/189086/history, how would I revert to Tue, 29 Dec 2009 23:22:25 +0000?

Anyone? I want to fix this as soon as possible before someone else tries to and screws it up more (unless said person fixes it, in which case good :)).

I set
http://www.openstreetmap.org/browse/relation/189086 back to Version 40
http://www.openstreetmap.org/browse/relation/269441 back to Version 15

is that enough ?

Yes, that should be; thank you. I can fill in the fields for the others (which didn’t lose any members). How did you fix it?

More importantly, how do I keep this from happening again?

I can fill in the fields for the others (which didn’t lose any members)
Right, that’s the reason why I didn’t revert them. You added many relation members with your edits and only the Relations Tags are gone which can be easily added again.

How did you fix it?

I downloaded the older Relation version without your edits from the server as XML file, modified the file with a text Editor to allow an upload, loaded the file in JOSM and uploaded it to the server as new version.

More importantly, how do I keep this from happening again?
I don’t know how or why this happened. I never had such an issue with JOSM.

I downloaded [bbox=-83,27.5,-80,29.5] and added everything with ref=“US 441” to the US 441 relation (and so on).

I’m suspecting this is a bug; can someone confirm that it’s not me?
To reproduce, I download [bbox=-82,28,-81,29] and open it with JOSM. Nine relations show up on the right, all identified by number and with 0 members. Opening the location http://api.openstreetmap.org/api/0.6/relation/371161 (one of the nine) does not change anything. I can, however, add any other relation (http://api.openstreetmap.org/api/0.6/relation/364476 for example) and everything seems fine.
Is there a way I should be doing this, or is this a bug?
If it is a bug, is it possible to tell XAPI to download ways and relations but not nodes as a workaround? Downloading everything ([bbox=-82,28,-81,29]) actually works reasonably, and doesn’t have the problems above, but I’d prefer not to get the nodes.