fixed a crash

ignore cases where structs have self-pointers