Fix HDBits saving.
More debugging for hdbits.