Fix bug in IE