Fix AttributeError on Purchase accept