If is NaN, change to 0