Fixed connection bug.