Repairing scripts and styles