Minor script corrections
Corrected scripts