Fix the scripts that are used when loading