Fixes tree distribution.