fixed master schedule bugs