fix remove connection bug