fixed critical dataReceived event ignoring bug