Fix diff engine