Fix an empty data set problem