Fix a hdf issue with too large chunk sizes