Fixed the bug in product.c.