Fix file/block deletion