fix purchasing