autosaving fix