hdf bug finally fixed