Fixing get_pool_addresses