Avoid assigning ids during destroy.