reconnection bug fix