update SDK and fix Safari