fixes for IE8 and IE11