bug fix on connection pool reuse