Fix wrong connection type