Fix occasional connection errors