fix auto_reconnect