fix connection failed listening