Don't clear modifications when saving fails