fix for when there are not categories