fix if no data in categories