IE Redirect Bug Fix, Removed unused code