fixConnection