fixes connection error