fixed category creation and deletion