Fix bug with bad instance numbers.