fix ObjectID generator