fix Safari 6