Made fixes for IE compatibility.