Bug fix for delete set