(#2497) - fix attachments in Chrome and IE

Yes, this is really what we have to do to get it to pass in IE. I'm sorry.
true, but I just put that after the conversion of negative numbers, so the current version should be fine.