fix critical bug in product qual_id tracking
Merge pull request #937 from rwcarlsen/prodid

fix critical bug in product qual_id tracking