fix for browser compat