Avoid "NaN" output