fixed error inside product.rb causting 500 error