fixed attaching log bugs