Script: Fix history