Fixed error on addToCart function