Fixes broken autosave.

Fixes #499