tree check fixed