Minor fix to the script