fixing pool_id