handle infinity/NaN