Fixed resource tree post-defragmentation