Update cart.rb

bug fixed