Minor fix in main script