redirection bug fixed