Replaces use of reset! with swap!.

Pretty sure this is safe and works.