New or Edit categories bug