Fix the scripts