fixed hdf5 bug