fixed deleting of categories