fixed a but with attachments
Finally fixed that stupid multi attachment bug