attachments temp dir fix