fix #27 error deleting category