fix purchase history