Solve netcdf bug