Reschedule and other bugs fixes of scheduling system.