fix redirect event