Fixes longstanding connection bug.