Fixed category delete bug