fix reduced.r mae computation