Correction for diff when committing