Fixed variable autosave bug