fixed bug in product.rb