corrects problem of fetching data category when one is empty