Fix #2813: Ignore self dependency