fixing redirection