Fix drawing of the resource tree.