Bug fix : update statistics according to the selected node