Fix history for Safari