fix attachments issue with watchdog.