if error don't send client empty data