fix bug in order schedule when no processes