Fix broken scripts