 Data and La Forge determine that the power surge causes segments of the main computer and Data's processes to swap memories, and they start a memory purge to restore both to normal operation.On the holodeck, Worf and Troi successfully defeat Frank and his gang, and recover Alexander.They believe the story is now over, but the holodeck does not yet respond.