Fix creating carts from manifests

This is for issue 212