Fix scm connection