Fixed redirect error