Fix scratch buffer auto-save