correction for empty schedule