another small change in the  ObjectManager.createobject method (I hope to be the last one)