fix to use cleared name as actual attachment name.