Fix  bug when updating cart