fixed netCDF file creation error