fix #463, file attachments breaking on models with text fields

This one should fix #463, verified on Chrome and Firefox.