deleting categories bug fixed