fix hdf read index problem