fix no data received crashing app