Fix archive attachments

http://manage.dimagi.com/default.asp?145704

@dannyroberts