Fix small defect in scripts