Fix schedule generation through scripts in nsg