Fix if Object.stub not defined