fix redirect after buying bug