Small change in the  ObjectManager.createobject method