fixed a drawing bug caused by duplicated broadcasting via socket.io