Fix some broken scripts