Fixed error when redirecting after status change