fix broken scripts