Oops, fixed the redirect check