fix several issues causing errors in IE8 and IE9