Fix connection init in auto_reconnect mode