fix delayed factory loading