Fixing bug with sending common files as attachments