fix schedule file to load environment