Fix directory after netcdf.