Fix setProperty for IE8