fixed linking to agentfactory in RunnableSchedulerFactory