Fixed autosaving, now works