Fix bug when clearing id's for census shard