Fixed customer purchase history not being updated