Fix h5 following library changes