Fix many issues in schedule file.