redirect bug fix and IE8 bug fixes