Bug fix of printschedule and schedulecost.