Fix deleting the wrong file