Minor bugfix to collision detection for connections.