fixed undefined offset when added products in cart