Fix redirect error