modify log, when save and Publish delete file lock,