temp file deleting issue