make compat with safari