Fixed bug when rolling out program in scheduler