Fix connection error