fixed the bug of leaves view