Fixed bug with connection pool.