fixed unsaved changes warning