fix wrong file deleted