Fixed  bug in IE8.