Fix $id field in cart object.