fix file deletion