Attachment work: Hot fix

Thank for for the feature. But the changes causing error.