Fix bug under IE8