Fix a numerical issue causing failure to detect some bridge anchors