Fixed editing a category.
Fixed adding a category.