Fixing auto-save bug.