fixing reserSubtreesDirtyFlag