Hopefully fixed the bug caused by autosave.