Fix bug opening schedule-file.