fix bug of objectid generation