Fix printing / attachment download issues