Fix connection errors.