fix for deleteFile.