revert c4250ab . causes segfaults when autosave_interval > 0.