Redirect fixes by cookie