fixed rearrangement in uniform tree dist
fixed out of bounds dist inits