apply workaround only on safari