remove NaNs from stats