fix redirct to back excpition