Improved rendering for NaNs