fixed folding when going up the tree