fix edit link

edit link crashes because of category missing.