Fix a problem of IE and Chrome