fixed bug with err. in cart.rb