Fixed leaf nodes elements that were being hidden when auto open depth was greater than leaf node depth