fix an issue with empty results in excel building