Fix bug: not saving after edit a line