save-analysis: two minor bugs

r?