fix connection bug3