fixed attachment problem