fix ncdf4 problems