WebSocket connecting bug fixed