You thaw out just in time for the Wave to hit you a second time. Now that you're a female, the Wave has the opposite effect, turning you back into a man.
It's been a long trip, but you're back in a male body. The rest of the world continues to experience the effects of the Wave...