fix redirect when record