Fix unsaved changes warning