If error is clicked, it can't redirect twice.