Fixed indexing of variables with new netcdf package.