fix bug on recording global unique object ID