Fix diff1 for MAX