Fix: double launch of onConnectServer