update source code NaN error fixed