buggy leaves iterator