Fix reconnect issue.