Fixed isConnected return