Fix a bug in IE8