fix for no-attachment file