fix tree if reset search pressed