fixing exception ghrowing for redirects