Fixes a bug in the size of hdf5 attributes