Fix a bug when trying to reconnect after making a mistake.