fixes bug with purchase updte