Change the ObjectManager.createobject method to improve the reliability of object creation