Fix bug preventing product counting in cart