Fixed tree and test it.