fixing connection issue