Fixed bug of attachment download