fixing some auto-save functionality.