fixed connection problem