fix connection problem