fix attachments directory.