fix for received invalid data