autosave and caching bugs fixed