fixing connection pool