fix incorrect exit for redirects