fix hdf paths replacement