Fix problem in netcdf reader.