Add deactivation of missed connections. Also had to fix the test.