cleanup the NaNs