fix bug socket.on start typing