processesWaiting fix