removing link from empty categories