Fixed crash on retry purchases.

This is probably hacky, but it's broken and unusable the way it currently is.