error trying edit a category