Restores connection after rotations