Fix a bug where nested save doesn't go up multiple levels of parent contexts