Fixed bug on models with multiple attachments, where once _first_ attachment is processed, _all_ are mistakenly marked as processed