Fix action.cart (close #595)