fix add_pool

issue #157