Document.getObject("classname",0) seems to return null when creatin new object