Fix redirect error.