fixed automatic invoicing