fix bug in JM pipeline get_brand_id