fixed error in split_nc_files