fix delete file no longer working