bugfix : bug with getAttachement who stoped before ending the download