Fix off-by-one error in dependency attachments