Fix error with assignment to read-only property in IE10