fix TreeHelper