Fixed broken scripts