Fix processing 'hash' type in 'dehydrate' method.

...itional index check.

Fix processing 'hash' type in 'dehydrate' method.