Fix function to calculate null from no diference between the set if traits