Fixing double-check when asked for unsaved changes