Switching gender saves state