Modify the id of entities.