Further improvement of Smooth Connections check: Take the longer distance as reference and check the shorter one against it