Base hash modified when inner hashes are empty