fix getReceivedData