Fix emailing from invoice view