Change instance_id to id in instance