Fix localStorage cart corruption