bug fix for printing NaN's