fix for MacOS X reated to scheduler::instance_