fix critical bug in product qual_id tracking