fix ServiceManagerFactory creation