fixed mail attachment problem