Fix na_fraction calculation.