fix autosaving
fix indentation bug