Fixed a few connection errors.