refresh correctly root node when it has no children