fix ttree max. distance.