Fix redirect error in IE.