Fix safari detection and saving.