fixed error getting connection from pool