double check on dirty data before saving change

Thanks to dnstbr/revisionable@ea17903fd0854838f044bcfe204e3d64b0abecfe