Fix connection type