fix Safari issues