Fix #6999 top-most node can be visibleLayers value