fix global redirect