fixed connection errors