[From Bill] Fix bug in hiding connecting lines.