fix bug in attachment_fu plugin