Fix the height of tree