fixes from browser compat tests