Fix BlockPane's connection detection.