download attachment fix