fix connection error