Fix minor problem with deleting attached files.