fix cycle detection case: struct and its first member has the same address.