Updated attachments to work properly when error reporting is turned on