fixes for IE 10 and possibly 9