Bugfix: saving on quit