Fix IE8 bug where attr was being forcefully changed