Fix initialization error in HDF