Fix objects not being root IDs in objects_by_id