dual tree bug fix