Mnor fix of ObjectFactory::createNewLinkLikeTree function