Fix bug where rewriting the hash with a new hash_size would make it a no...

...-op