When items are inserted in a partially populated treeview, the first visible item was not correctly updated. The first visible item was sometimes used to calculate the location of other items when it had been freed.