Fix rd_average.