fix if data downloaded was an empty string