change redirect after error