fixed HDF5 output problem