Repaired script