bugfix: scheduling fix run toSchedule queue all the way until empty