fix bug to use pooled connection