fixed a huge bug causing delete problem in purchased items