FIxed getPid() within Scheduler