fix connection pool bug