Something happens. They remember selling the marriage. Peter/MJ separate a bit to work things out then get back together and it's a second marriage. All the stories post first marriage still happened but their memories and certain aspects of reality were altered to accommodate for it.