fix delete blocks in logic