Fixes for IE compatibility.