Fix getObjectVars not functional