Fixed bug in WebSocketApplication