Fixed bug with purchase