Fix the assert on a self-connect