Fixed Addattachment() order.