fix for future versions of safari