Fixes for IE8 compat