Add a workaround for IE 8/9 bug