Fix to support IE10, IE11