Mistake in comparing hash type.