fixes connection