second click on save bug fixed(lastMod value update)