corrects unsaved method