bug fix for the schedule view.