client: fix pool_cls assignment bug.