fix edit link

edit link crashes because of missing category.