remove self-ref