fixed report NaN error