fixed bug on purchase update.