Fixed double redirect error.