Fix connecting problem