In order to return to their correct timelines, they would have to repair other realities that caused the ripple effect that disrupted their reality or they would return to their alternate existences.
They would have to repair other realities. This was to return to their correct timelines. These other realities caused the ripple effect. This ripple effect disrupted their reality. They would return to their alternate existences.