Fix produces attribute for diff method.