Fixed hdf5 type conversion error introduced by last commit