fix not redirected issue