Fixed bug in product code