Fix bug: unable to delete created categories