fixed hdf5 generation