Correcting magic with diffs