misc fixes for ie-8 compat