[FIX] fixed bug in update cart code