fix bug for delete file