fix the redirect