fixed the missing instance variable when redirecting