Fixes attachment export

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>