fixed attaching files