fixed recursive tree updates