Category delete fix