enhance IE and Safari compatibility.