Corrected temp file delete.