fix the bug of can't add product to cart