bug fix for extract product id