fixed error in adding to cart