Fix scheduler for the minion, Fix #4937