Fix bug with leaf show