fixed check for new data (would not proceed to send data if no data received within the same call)