fixed vendor method in market.rb. made @id attribute into integer in vendor.rb.