fixed the purchase history issue