improved NaN treatment in Majority Aggregator