Fix the errors if a script has not run yet