setting catch-var to nil after redirecting