Filter out self refs